package com.smarthome.core.operationservicemanager;

import java.util.List;

import com.smarthome.domain.bean.ShCompanyLaundry;
import com.smarthome.domain.bean.ShLaundryFee;
import com.smarthome.domain.vo.boss.Combobox;
import com.smarthome.domain.vo.boss.DataGrid;
import com.smarthome.domain.vo.boss.PageHelper;


/**
 * 
* @ClassName: CompanyLaundryService
* @Description: 洗衣店service接口
* @author cyj
* @date 2016年3月22日 下午9:56:33
*
 */
public interface CompanyLaundryService {

	/**
	 * 
	* @Title: getById 
	* @Description: 根据id获取洗衣店
	* @param id
	* @return
	* ShCompanyLaundry
	* @throws 
	* @author cyj
	 */
	ShCompanyLaundry getById(Long id);
	
	
	
	/**
	 * 
	* @Title: qeuryDataGrid 
	* @Description: 获取洗衣店datagrid
	* @param companyLaundry
	* @param page
	* @return
	* DataGrid
	* @throws 
	* @author cyj
	 */
	DataGrid qeuryDataGrid(ShCompanyLaundry companyLaundry,PageHelper page);
	
	
	/**
	 * 
	* @Title: saveOrUpdate 
	* @Description: 新增或修改 
	* @param companyLaundry
	* @return
	* Integer
	* @throws 
	* @author cyj
	 */
	Integer saveOrUpdate(ShCompanyLaundry companyLaundry);
	
	/**
	 * 
	* @Title: delete 
	* @Description: 根据id删除 
	* @param id
	* @return
	* Integer
	* @throws 
	* @author cyj
	 */
	Integer delete(Long id);
	
	
	/**
	 * 
	* @Title: getCombobox 
	* @Description: 根据小区id获取洗衣店combobox 
	* @param residenceId
	* @return
	* List<Combobox>
	* @throws 
	* @author cyj
	 */
	List<Combobox> getCombobox(Long residenceId);
	
	/**
	 * 
	* @Title: checkName
	* @Description: 检测同一地址是否有同名
	* @param companyLaundry
	* @return 
	* boolean  
	* @throws
	 */
	boolean checkName(ShCompanyLaundry companyLaundry);

}
